package com.group4.datafactorybackend.util;

import java.util.HashSet;
import java.util.List;

/**
 * @author xin
 * @date 2022/8/15 10:16
 */
public class SizeUtils {

    /**
     * @author 邹代鑫
     * @param list 需要判断的集合
     * @return boolean
     * @description 判断集合是否存在相同值
     */
    public static boolean siblingRepetition(List<String> list){
        HashSet<String> set = new HashSet<>(list);
        return set.size() == list.size();
    }
}
